package org.tarena.dang.service;

import java.sql.SQLException;

import org.tarena.dang.entity.User;

public interface UserService {

	String register(User user, String ip)throws Exception;

	User login(User user)throws SQLException;

	void update(User user)throws SQLException;

	User checkEmailCode(User user);

	void updateEmailVerify(int id);

	boolean findByEmail(String email)throws SQLException;
}
